package com.sikaryofficial.workbench.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sikaryofficial.workbench.domain.dto.req.goods.GoodsFilterReq;
import com.sikaryofficial.workbench.domain.dto.req.goods.GoodsListReq;
import com.sikaryofficial.workbench.domain.dto.resp.goods.GoodsDTO;
import com.sikaryofficial.workbench.domain.dto.resp.goods.GoodsFilterDTO;
import com.sikaryofficial.workbench.domain.entity.Goods;

import java.util.List;

/**
 * 商品Service接口
 *
 * @author wuweihong
 * @date 2024-09-23
 */
public interface IGoodsService extends IService<Goods> {

    /**
     * 获取活动分页数据。仅限上架商品
     *
     * @return
     */
    IPage<GoodsDTO> getGoodsByPage(Page<GoodsDTO> customerPage, GoodsListReq req);

    /**
     * 获取商品筛选条件
     *
     * @param req
     * @return
     */
    GoodsFilterDTO queryGoodsFilter(GoodsFilterReq req,Long userId);

    Boolean updateRecommendGoods(List<Long> goodsIds);

    List<Goods> navigation(Long userId);
}
